<?php

include_once("../config/config.inc.php");
include_once("common.php");
include_once("command.php");

$result2=@mysql_query("select count(*) as num from de_photos",$con);
 if(!$result2){$num=0;}else{
 $num=mysql_result($result2,0,"num");}
if(!$page)$page=1;
$offset =($page-1)*$rowperpage;
///////////////////////////////////////

$query="select id,describle,filename,datetime,user,sort,filesize from de_photos ORDER BY id desc LIMIT $offset,$rowperpage";
show($query);
/////////////////////////////////
de_footer();

?>